﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ThresholdAssistant.WebAPI.Models
{
    /// <summary>
    /// 预警读取表
    /// </summary>
    [Table("t_red")]
    public class Red
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [Key]
        [Column("id")]
        public long Id { get; set; }

        /// <summary>
        /// 分组Id
        /// </summary>
        [Column("group_id")]
        public long GroupId { get; set; }

        /// <summary>
        /// 会员Id
        /// </summary>
        [Column("member_id")]
        public long? MemberId { get; set; }

        /// <summary>
        /// 最后点击时间
        /// </summary>
        [Column("last_click_time")]
        public DateTime? LastClickTime { get; set; }
    }
}
